function resp = MyG( h )
    global BETA;
    global activationFunc;
    
    if activationFunc == 0
        %tanh
        resp = tanh(BETA*h);
    elseif activationFunc == 1
        %exp
        resp = 1/(1+exp(-2*BETA*h));
    end
end

